package jwdt.xadmin.added.bean;

import com.ezerg.db.Jdb;
import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;

@Table(name="t_link", keys={"id"}, comment="")
public class TLink implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="id", comment="")
	private Integer id;
	
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}

	@Column(value="webname", comment="网站名称")
	private String webname;
	
	@Column(value="weburl", comment="网站地址")
	private String weburl;
	
	@Column(value="logo", comment="网站LOGO")
	private String logo;
	
	@Column(value="webmaster", comment="站长")
	private String webmaster;
	
	@Column(value="email", comment="电子邮件")
	private String email;
	
	@Column(value="content", comment="网站备注")
	private String content;
	
	@Column(value="pass", comment="是否审核")
	private Integer pass;
	
	@Column(value="linktype", comment="链接类型")
	private Integer linktype;
	
	@Column(value="dateandtime", comment="创建时间")
	private String dateandtime;
	
	public String getWebname() {
		return webname;
	}
	
	public void setWebname(String webname) {
		this.webname = webname;
	}
	public String getWeburl() {
		return weburl;
	}
	
	public void setWeburl(String weburl) {
		this.weburl = weburl;
	}
	public String getLogo() {
		return logo;
	}
	
	public void setLogo(String logo) {
		this.logo = logo;
	}
	public String getWebmaster() {
		return webmaster;
	}
	
	public void setWebmaster(String webmaster) {
		this.webmaster = webmaster;
	}
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getPass() {
		return pass;
	}
	
	public void setPass(Integer pass) {
		this.pass = pass;
	}
	public Integer getLinktype() {
		return linktype;
	}
	public String getLinktypeName(){
		String ln = "";
		TLinktype lt = (TLinktype) Jdb.get().get(TLinktype.class, this.linktype);
		if(lt != null)
			ln = lt.getName();
		return ln;
	}
	public void setLinktype(Integer linktype) {
		this.linktype = linktype;
	}
	public String getDateandtime() {
		return dateandtime;
	}
	
	public void setDateandtime(String dateandtime) {
		this.dateandtime = dateandtime;
	}
}
